diff --git a/PKG-INFO b/PKG-INFO index f426695f..36891503 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,10 +1,10 @@ Metadata-Version: 1.0 Name: swh.web -Version: 0.0.126 +Version: 0.0.127 Summary: Software Heritage Web UI Home-page: https://forge.softwareheritage.org/diffusion/DWUI/ Author: Software Heritage developers Author-email: swh-devel@inria.fr License: UNKNOWN Description: UNKNOWN Platform: UNKNOWN diff --git a/swh.web.egg-info/PKG-INFO b/swh.web.egg-info/PKG-INFO index f426695f..36891503 100644 --- a/swh.web.egg-info/PKG-INFO +++ b/swh.web.egg-info/PKG-INFO @@ -1,10 +1,10 @@ Metadata-Version: 1.0 Name: swh.web -Version: 0.0.126 +Version: 0.0.127 Summary: Software Heritage Web UI Home-page: https://forge.softwareheritage.org/diffusion/DWUI/ Author: Software Heritage developers Author-email: swh-devel@inria.fr License: UNKNOWN Description: UNKNOWN Platform: UNKNOWN diff --git a/swh/web/templates/includes/snapshot-context.html b/swh/web/templates/includes/snapshot-context.html index 70450f3c..29f2edba 100644 --- a/swh/web/templates/includes/snapshot-context.html +++ b/swh/web/templates/includes/snapshot-context.html @@ -1,40 +1,43 @@ {% comment %} Copyright (C) 2017-2018 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %}
{% if snapshot_context.origin_info %} + {% if snapshot_context.origin_info.url|slice:"0:4" == "http" %} {% endif %} - +

Origin: {{ snapshot_context.origin_info.url }}

{% else %}

Snapshot: {{ snapshot_context.snapshot_id }}

{% endif %}
diff --git a/swh/web/templates/origin-visits.html b/swh/web/templates/origin-visits.html index 2d95ba39..2621dcd4 100644 --- a/swh/web/templates/origin-visits.html +++ b/swh/web/templates/origin-visits.html @@ -1,101 +1,104 @@ {% extends "browse.html" %} {% comment %} Copyright (C) 2017-2018 The Software Heritage developers See the AUTHORS file at the top-level directory of this distribution License: GNU Affero General Public License version 3, or any later version See top-level LICENSE file for more information {% endcomment %} {% load static %} {% load swh_templatetags %} {% load render_bundle from webpack_loader %} {% block header %} {{ block.super }} {% render_bundle 'origin' %} {% endblock %} {% block swh-browse-before-panels %}
+ {% if origin_info.url|slice:"0:4" == "http" %} {% endif %}

Origin: {{ origin_info.url }}

{% for key, val in swh_object_metadata.items|dictsort:"0.lower" %} {% endfor %}
{% endblock %} {% block swh-browse-main-panel-content %}

{{ top_panel_text }}

Visits overview

Visits history

Timeline
Calendar
List
{% endblock %} diff --git a/version.txt b/version.txt index 0620af28..10b4e75f 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v0.0.126-0-ga9972e5 \ No newline at end of file +v0.0.127-0-g2a1768c \ No newline at end of file